package com.ysd.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;



import com.ysd.dao.impl.NewslistDao;
import com.ysd.entity.News;

/**
 * Servlet implementation class NewslistServlet
 */
@WebServlet("/NewslistServlet")
public class NewslistServlet extends HttpServlet {
	protected  void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
			
			String typeid =request.getParameter("typeid");
			News list=NewslistDao.getAll(typeid);
			request.setAttribute("list",list);
			
			request.getRequestDispatcher("article_list_content.jsp").forward(request, response);
			
		}
}
